package com.example.ztpandroid233;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import static com.ztp.lib.server.UsersTableShema.*;

public class SQLiteHelper  extends SQLiteOpenHelper{

	
	
	public SQLiteHelper(Context context) {
		super(context, DB_NAME , null, 1);
	}
	
	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(CREATE_STMNT);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		db.execSQL(DROP_STMNT);
		onCreate(db);
	}

	
	
}
